package com.zhuozhou.jdyc.main.meinfo.adapter;

import android.content.Context;

import com.bumptech.glide.Glide;
import com.zhuozhou.jdyc.R;
import com.zhuozhou.jdyc.base.BaseRecyclerViewAdapter;
import com.zhuozhou.jdyc.base.BaseViewHolder;
import com.zhuozhou.jdyc.databinding.AdapterMerchantItemBinding;
import com.zhuozhou.jdyc.main.meinfo.bean.ConcernMerchantBean;

/**
 * Create by Once_ChuXy on 2021/10/5
 * Describe:
 */
public class ConcernMerchantAdapter extends BaseRecyclerViewAdapter<ConcernMerchantBean.ObjBean, AdapterMerchantItemBinding> {
    public ConcernMerchantAdapter(Context context) {
        super(context);
    }

    @Override
    public void onBindHolder(BaseViewHolder<AdapterMerchantItemBinding> holder, int pos) {
        holder.getBinding().setBean(mList.get(pos));
        Glide.with(mContext).load(mList.get(pos).getImages()).into(holder.getBinding().imageMerchant);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.adapter_merchant_item;
    }
}
